﻿Public Class Form1

    Private Sub AnswersBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Me.Validate()
        Me.AnswersBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me._multiple_choice_dbDataSet)

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the '_multiple_choice_dbDataSet.Answers' table. You can move, or remove it, as needed.
        Me.AnswersTableAdapter.Fill(Me._multiple_choice_dbDataSet.Answers)
        'TODO: This line of code loads data into the '_multiple_choice_dbDataSet.Questions' table. You can move, or remove it, as needed.
        Me.QuestionsTableAdapter.Fill(Me._multiple_choice_dbDataSet.Questions)
        'TODO: This line of code loads data into the '_multiple_choice_dbDataSet.Questions' table. You can move, or remove it, as needed.
        Me.QuestionsTableAdapter.Fill(Me._multiple_choice_dbDataSet.Questions)
        'TODO: This line of code loads data into the '_multiple_choice_dbDataSet.Answers' table. You can move, or remove it, as needed.
        Me.AnswersTableAdapter.Fill(Me._multiple_choice_dbDataSet.Answers)

    End Sub

    Private Sub QuestionsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles QuestionsBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.QuestionsBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me._multiple_choice_dbDataSet)

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        RichTextBox1.Rtf = QuestionRichTextBox.Rtf
    End Sub
End Class
